package testaux;

public class FunctionList {
    public final Function head;
    public final FunctionList tail;

    public FunctionList(Function head) {
        this.head = head;
        this.tail = null;
    }

    public FunctionList(Function head, FunctionList tail) {
        this.head = head;
        this.tail = tail;
    }

    public String toString() {
        return "\n" + head.toString() + (tail == null ? "" : tail.toString());
    }
}
